package com.victor.entity.happy;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 娱乐项目表（主题）
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "happy_theme")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HappyTheme {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "t_id", unique = true, nullable = false, length = 11)
	private Integer t_id;

	@Column(name = "h_id", length = 50)
	private String h_id;// 娱乐商家id

	@Column(name = "t_name", length = 50)
	private String t_name;// 娱乐项目名称

	@Column(name = "t_price", length = 50)
	private String t_price;// 娱乐项目价格

	@Column(name = "t_difficulty", length = 50)
	private String t_difficulty;// 项目难度

	@Column(name = "t_type", length = 50)
	private String t_type;// 类型

	@Column(name = "t_people", length = 50)
	private String t_people;// 人数

	@Column(name = "t_limitedtime", length = 50)
	private String t_limitedtime;// 限时

	@Column(name = "t_themeintroduce", length = 50)
	private String t_themeintroduce;// 主题介绍

	@Column(name = "t_carefulnote", length = 50)
	private String t_carefulnote;// 注意事项

	@Column(name = "t_mainphoto", length = 50)
	private String t_mainphoto;// 右侧主图片
	
	@Column(name = "t_installtime", length = 50)
	private String t_installtime;// 项目发布时间

	@Transient
	private List<HappyThemePhoto> happyThemePhotos;// 多张 娱乐项目图片

	@Transient
	private List<HappyThemeTime> happyThemeTimes;// 多个娱乐项目时间表
}
